To be clear, I first tried Tapestry 5.3.7, then 5.3.8, and both worked fine.
On Mon, Dec 15, 2014 at 12:07 PM, Bob Harner <bobhar...@gmail.com> wrote: > Benjamin, > > I can't reproduce your problem. I just created a new project using the > Maven Archetype for Tapestry 5.3.8, then added the OrderHandling page > exactly as described at > http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Palette.html > and it worked fine. (I could move items between the left and right > lists with no problems.) Then I upgraded to Tapestry 5.3.8 (by editing > the version in the pom.xml file) and it still worked fine. > > I suggest you look for JavaScript errors in your browser's console. > Something you've added might be messing with the JavaScript that the > Palette component uses. > > > On Mon, Dec 15, 2014 at 10:45 AM, Chris Poulsen <mailingl...@nesluop.dk> > wrote: >> I have never used the palette, but have you had a look at the >> tapestry-5\tapestry-core\src\test\java\org\apache\tapestry5\integration\app1\pages\PaletteDemo.java >> file? >> >> On Mon, Dec 15, 2014 at 4:38 PM, Berghoff, Benjamin < >> benjamin.bergh...@isst.fraunhofer.de> wrote: >>> >>> I use java 32 bit. >>> The "Dms" class is a Simple Enumeration class. >>> >>> Regards >>> Benjamin B. >>> >>> Von: B, Benjamin >>> Gesendet: Montag, 15. Dezember 2014 16:32 >>> An: users@tapestry.apache.org >>> Betreff: Problems with the Palette component >>> >>> 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> >>> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org