Hello Mario,
please add a tc:messages tag to your page.
Regards
Bernd
Bernd Bohmann schrieb:
> Hello Mario,
>
> I don't see any reason why this shouldn't work.
>
> Can you send the complete page, please.
>
> Is your page containing a tc:page?
>
> Regards
>
> Bernd
>
> Mario Schröder schrieb:
>> Hi,
>>
>> I wrote a simple app whith a single bean and two pages, one to enter some
>> text and another page to display the result. I used MyFaces 1.1.5 and Tobago
>> 1.0.12 and 1.0.20. My sample works with myfaces but not with Tobago. Tobago
>> displays always the same page. I thought the cause is that my bean returns
>> the wrong navigation rule, so I tried a static rule, unfortunetly it doesn't
>> help. The same navigation rule applies to the myfaces sample, and there it
>> works.
>> I'm getting slightly mad. Who can help me and show me what am I doing wrong?
>>
>> Here are the important pieces of my code:
>>
>> faces-config.xml:
>> ...
>> <managed-bean>
>> <managed-bean-name>bean</managed-bean-name>
>> <managed-bean-class>test.TextBean</managed-bean-class>
>> <managed-bean-scope>session</managed-bean-scope>
>> <managed-property>
>> <property-name>text</property-name>
>> <value>Test</value>
>> </managed-property>
>> </managed-bean>
>>
>> <navigation-rule>
>> <navigation-case>
>> <from-outcome>show</from-outcome>
>> <to-view-id>/result.jsp</to-view-id>
>> </navigation-case>
>> </navigation-rule>
>> ...
>>
>> The myfaces page:
>> ...
>> <f:view>
>> <h1><h:outputText value="MyFaces" /></h1>
>> <h:form>
>> <h:inputText value="#{bean.text}" />
>> <h:commandButton action="#{bean.nextAction}" value="submit"
>> />
>> </h:form>
>> </f:view>
>> ...
>>
>> The Tobago page:
>> ...
>> <tc:box label="Address">
>> <f:facet name="layout">
>> <tc:gridLayout rows="fixed;fixed"/>
>> </f:facet>
>> <tc:form>
>> <tx:in label="First Name" value="#{bean.text}"/>
>>
>> <tc:button action="#{bean.nextAction}" label="save" />
>> </tc:form>
>> </tc:box>
>> ...
>>
>> And the nextAction()-Method of my bean:
>> ...
>> public String nextAction(){
>> return "show";
>> }
>> ...
>>
>> I appreciate any hints or help.
>> ____________________________________________________________________
>> Psssst! Schon vom neuen WEB.DE MultiMessenger gehört?
>> Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
>>
>>
>