Tools can be the bane of my existence sometimes…
IBM’s Rational Application Developer (RAD) handles the voodoo between your JSF JSP and the backing bean (pagecode). It maintains this reference with a commented line atop your JSP that looks something like this:
<%-- jsf:pagecode language="java" location="/JavaSource/pagecode/View.java" --%><%-- /jsf:pagecode --%>
This tells the IBM PageDesigner that the methods/members of that particular page reside in a java file called ‘View.java’…simple enough.
I went to use their tool to add a button on a different JSP (edit.jsp). When I clicked the ‘Quick Edit’ tab (which should create the action method for me in the backing bean), I could only see javascript methods available to me.
hmmm
sure enough, I check the source of the JSP and wouldn’t you know it, RAD forgot to add:
<%-- jsf:pagecode language="java" location="/JavaSource/pagecode/Edit.java" --%><%-- /jsf:pagecode --%>
to the top of the page. There was no way for the Page Designer to figure out what backing bean to place the new method in.
Hope this helps anyone unfortunate enough to see this issue in their project.
May 21, 2009 at 12:35 pm |
Пора переименовать блог, присвоив название связанное с доменами
может хватит про них?
May 23, 2009 at 3:51 pm |
Спасибо за пост. Позновательно.
May 24, 2009 at 12:57 pm |
Спасибо. То, что нужно ))
May 26, 2009 at 2:12 am |
Зачет, сенкс автору