Hi,
I'm using tapestry-jpa 5.3.8. I use Eclipse JavaEE Kepler, the jre is oracle 1.7.0_51.
The used pom.xml is attached. The project is built upon the project created by "mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org".
When I tried to implement the example on, http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Palette.html, I got stuck as the example doesn't works as expected.
At first it seemed to work, the component has been displayed correctly, but when I select one of the available items the corresponding button is still disabled. See PaletteError.jpg for a snapshot.
This behavior is the same for Opera 12. 17, Firefox 34.0.5 and Chrome 39.0.2171.95 m.
Does anybody has a clue what's wrong?
If my description lacks any required information I will be glad to provide it, to get my problem solved.
Thanks and Regards
Benjamin B.
My Java File Dummy.java:
package ****.pages;
import java.util.List;
import org.apache.tapestry5.SelectModel;
import org.apache.tapestry5.ValueEncoder;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.Messages;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.ioc.services.TypeCoercer;
import org.apache.tapestry5.util.EnumSelectModel;
import org.apache.tapestry5.util.EnumValueEncoder;
import ****.DMS;
public class Dummy {
@Property
@Persist
private List<DMS> handling;
@Inject
private Messages messages;
@Inject
private TypeCoercer typeCoercer;
@Property
private final ValueEncoder<DMS> encoder = new EnumValueEncoder(typeCoercer, DMS.class);
@Property
private final SelectModel model = new EnumSelectModel(DMS.class, messages);
My tml (1:1 copy) :
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<body>
<h1>Special Handling</h1>
<t:form>
<t:palette t:id="handling" encoder="encoder" model="model"/>
<br/>
<input type="submit" value="Continue"/>
</t:form>
</body>
</html>
I'm using tapestry-jpa 5.3.8. I use Eclipse JavaEE Kepler, the jre is oracle 1.7.0_51.
The used pom.xml is attached. The project is built upon the project created by "mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org".
When I tried to implement the example on, http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Palette.html, I got stuck as the example doesn't works as expected.
At first it seemed to work, the component has been displayed correctly, but when I select one of the available items the corresponding button is still disabled. See PaletteError.jpg for a snapshot.
This behavior is the same for Opera 12. 17, Firefox 34.0.5 and Chrome 39.0.2171.95 m.
Does anybody has a clue what's wrong?
If my description lacks any required information I will be glad to provide it, to get my problem solved.
Thanks and Regards
Benjamin B.
My Java File Dummy.java:
package ****.pages;
import java.util.List;
import org.apache.tapestry5.SelectModel;
import org.apache.tapestry5.ValueEncoder;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.Messages;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.ioc.services.TypeCoercer;
import org.apache.tapestry5.util.EnumSelectModel;
import org.apache.tapestry5.util.EnumValueEncoder;
import ****.DMS;
public class Dummy {
@Property
@Persist
private List<DMS> handling;
@Inject
private Messages messages;
@Inject
private TypeCoercer typeCoercer;
@Property
private final ValueEncoder<DMS> encoder = new EnumValueEncoder(typeCoercer, DMS.class);
@Property
private final SelectModel model = new EnumSelectModel(DMS.class, messages);
My tml (1:1 copy) :
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<body>
<h1>Special Handling</h1>
<t:form>
<t:palette t:id="handling" encoder="encoder" model="model"/>
<br/>
<input type="submit" value="Continue"/>
</t:form>
</body>
</html>