This content has been marked as final.
Show 3 replies
-
1. Re: Difference between @Factory and @Create for outjected co
swd847 Oct 8, 2007 6:54 PM (in response to shakenbrain)Because you are outjecting it as jobTicket and referring to it as selectedJobTicket.
-
2. Re: Difference between @Factory and @Create for outjected co
shakenbrain Oct 8, 2007 6:56 PM (in response to shakenbrain)Stupid editing error on my part when entering this question. The xhtml really is:
<s:decorate id="titleDecorator" template="/decorateField.xhtml"> <ui:define name="label">#{messages.Title}</ui:define> <h:inputText id="title" value="#{jobTicket.title}" size="80" required="true" autocomplete="off"/> </s:decorate>
So the problem still exists... -
3. Re: Difference between @Factory and @Create for outjected co
matt.drees Oct 9, 2007 1:07 AM (in response to shakenbrain)@Out behaves in a "push" fashion; @Factory behaves in a "pull" fashion.
So, without a @Factory, you need to trigger the creation of your component somehow. I'd suggest you make a page action that runs a (potentially blank) method in that component.
I'm not sure why the debug page shows that the jobTicket exists when you weren't using @Factory; maybe your component was injected/called by something else in the conversation? You could put a breakpoint in createTicket() if you really wanted to know.