links for 2011-01-25

26 01 2011

links for 2011-01-24

25 01 2011

links for 2011-01-22

23 01 2011

links for 2011-01-21

22 01 2011
  • I'm trying to re-use a form as an edit form if its posted with GET parameters. The form works fine for both add and edit. The problem is that if I delete an entry, the next time I try to use the form as an add form, it throws an error (below).

    "Caused by: org.jboss.seam.framework.EntityNotFoundException: entity not found: us.ziacom.vm.model.Account#8"

    Answer: It looks like you are trying to reuse the same Home object. Don't, get a new one (e.g. start a new conversation).
    Notes: Watch out for s:buttons propagation, must be set to "none", you should also pass a parameter with no value to be set for entity Id in the Home object (or action), eg. <f:param name="myClassId" />, public class MyClassHome extends EntityHome<MyClass> { public setMyClassId(Integer id) { this.setId(id); } …

links for 2011-01-20

21 01 2011
  • The pages.xml file and any .page.xml file is Seam's way of describing:

    1. RESTful (non-Faces) pages – That is, what to do with the URL parameters for a GET request.
    2. View restrictions – Restrict users from viewing pages based on an EL expression.
    3. Page actions – Invoke EL expressions whenever a page is accessed (RESTful or not).
    4. Page flow – The Seam <navigation> elements can replace the ordinary JSF navigation rules.

links for 2011-01-17

18 01 2011

links for 2011-01-16

17 01 2011
  • We've got a situation where someone (not me…really :)) really screwed up a Commit to our SVN server…lot's of files deleted, etc.

    Question: What is the technique for making the previous (to the bad Commit) revision the HEAD revision? I've seen discussion here on SO for doing this for 1 file, but we'd like to make it like that last commit never happened. Any ideas?

    ANSWER: Using TortoiseSVN, you can show log, check previous revision (n-1), in context menu choose Revert to this revision and commit the changes (it will becomes n+1, where n is current bad head)

    The cleanest way would be to undo changes

    You can use svn merge to “undo” the change in your working copy, and then commit the local modification to the repository. All you need to do is to specify a reverse difference. (You can do this by specifying –revision 303:302, or by an equivalent –change -303.)

    See also: