[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-06-15 Thread a.moreno.jimenez
Hi all,

I had the same loader constraints violated when linking 
org/ajax4jsf/dnd/Draggable after setting the JBoss Loader. It seems to me that 
there was some kind of mix-up between my library jars in the war WEB-INF/lib 
and the ones in the server lib directory (I know, I shouldn't do such things).

Everything was solved for me when I moved all jars to the EAR directory, and 
added the modules/java entries to the application.xml file.

btw, richfaces rocks!!! :)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054838#4054838

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054838
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-04-24 Thread ghiormar
Is you're drop zone the same as the drag zone? 
I was getting the same error when i didn't set the types right. you should drop 
then to a diffrent container in this case.




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040128#4040128

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040128
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-04-23 Thread davidetaibi
I've another problem now. When I try to use this code


  | public void processDrop(DropEvent dropEvent) {
  | Dropzone dropzone = (Dropzone) dropEvent.getComponent();
  | moveItem(dropEvent.getDragValue(), dropzone.getDropValue());
  | 
  | }
  | 
  | private void moveItem(Object dragValue, Object dropValue) {
  | System.out.println("DROP VALUE:"+dropValue.toString());
  | 
  | System.out.println("DRAG VALUE:"+dragValue.toString());
  | }
  | 

If I use only the second system.out all work fine, but when I use also the 
first  I obtain the following exception:

javax.servlet.ServletException: loader constraints violated when linking 
org/ajax4jsf/dnd/Draggable class
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)

I cannot access the dropValue object, this is very important for me because I 
have to compare the drag object with the drop object in the drop zone.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039933#4039933

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039933
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-04-23 Thread davidetaibi
Setting UseJBossWebLoader=true I solved my problem thank you very much!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039887#4039887

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039887
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-04-23 Thread ghiormar
this also happened to me. 
but when i set UseJBossWebLoader=true

but now my backing bean dosen't find the ajax4jsf.jar and richfaces.jar in my 
WEB-INF\lib folder, and fails to deploy.
It fails when it has to to call processDrop with 
org.ajax4jsf.dnd.event.DropEvent argument.
I tried to put the jars in the server/deploy/lib but now it gets 

  | 2007-04-23 16:04:21,090 WARN  [org.apache.myfaces.config.FacesConfigurator] 
More than one managed
  | bean w/ the name of 'a4j' - only keeping the last 
  | 2007-04-23 16:04:21,090 WARN  [org.apache.myfaces.config.FacesConfigurator] 
More than one managed 
  | bean w/ the name of 'a4jSkin' - only keeping the last 
  | 2007-04-23 16:04:21,090 WARN  [org.apache.myfaces.config.FacesConfigurator] 
More than one managed
  | bean w/ the name of 'ajaxContext' - only keeping the last 
  | 
when i deploy the first time it works fine. but when i redeploy the time stamp 
on the jar in WEB-INF/lib change and if i don't copy them againg to 
server/deploy/lib i get:
javax.servlet.ServletException: loader constraints violated when linking 
org/ajax4jsf/dnd/Draggable class
  | 

my question is how can i get around this? 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039836#4039836

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039836
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-04-20 Thread hispeedsurfer
Hi davidetaibi

anonymous wrote : Look in 
deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
  | 
  | set UseJBossWebLoader=true 

Now it works

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039160#4039160

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-04-18 Thread hispeedsurfer
Hi,

have the same problem.

  | javax.faces.el.MethodNotFoundException: /specialreleaseeditor.xhtml 
@107,140 dropListener="#{requestlist.processDrop}": Method not found: 
RequestListBean:5c4o1y-w4tnnw-f0o94j20-1-f0opgfby-1s.processDrop(org.ajax4jsf.dnd.event.DropEvent)
  | 

@stu2
What your DanD inferface looks like?




  | @Stateful
  | @Scope(ScopeType.CONVERSATION)
  | @Name("requestlist")
  | @SuppressWarnings("unchecked")
  | public class RequestListBean extends AbstractChildListBean implements
  | RequestList {
  | public void processDrop(DropEvent dropEvent) {
  | Dropzone dropzone = (Dropzone) dropEvent.getComponent();
  | 
  | }
  | 
  | }
  | 


  | package de.bosch.ecp.business;
  | 
  | import java.util.List;
  | 
  | import javax.ejb.Local;
  | 
  | import org.ajax4jsf.dnd.event.DropEvent;
  | import org.ajax4jsf.dnd.event.DropListener;
  | 
  | import de.bosch.ecp.abstracts.AbstractChildList;
  | import de.bosch.ecp.model.Request;
  | import de.bosch.ecp.model.SpecialRelease;
  | 
  | @Local
  | public interface RequestList extends AbstractChildList{
  | public void processDrop(DropEvent dropEvent);
  | }
  | 
  | 

If I implement DropListener in RequestlistBean problem is the same as well.

Use jboss-seam-1.2.1.GA seam-gen, 
ajax4jsf-1.1.1-SNAPSHOT.jar
richfaces-3.0.1-20070414.000828-14.jar
tomahawk-1.1.5-SNAPSHOT.jar

in WEB-INF\lib folder

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038705#4038705

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038705
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-03-29 Thread davidetaibi
Thank you for your post but I try your example (I create the two enumerations 
too) and I have the same error:

javax.servlet.ServletException: /test2.xhtml @52,58 
dropListener="#{dand.dragged}": Method not found: 
DandDAction.dragged(org.ajax4jsf.dnd.event.DropEvent)

I'm using this web.xml file:


  | http://java.sun.com/xml/ns/j2ee";
  |  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
  |  version="2.4">
  | 
  | 
  | 
  | 
  | Ajax4jsf Filter
  | ajax4jsf
  | org.ajax4jsf.Filter
  | 
  | 
  | 
  | ajax4jsf
  | *.seam
  | 
  | 
  | 
  | org.ajax4jsf.VIEW_HANDLERS
  | 
org.jboss.seam.ui.facelet.SeamFaceletViewHandler
  | 
  | 
  | 
  | org.ajax4jsf.SKIN
  | blueSky
  | 
  |  
  |
  | 
  |
  |   org.jboss.seam.servlet.SeamListener
  |
  | 
  | 
  | Seam Filter
  | org.jboss.seam.web.SeamFilter
  | 
  | 
  | 
  | Seam Filter
  | /*
  | 
  | 
  |
  |   Seam Resource Servlet
  |   org.jboss.seam.servlet.ResourceServlet
  |
  | 
  |
  |   Seam Resource Servlet
  |   /seam/resource/*
  |
  |
  |   
  | 
  |
  |   
org.apache.myfaces.webapp.StartupServletContextListener
  |
  |
  |
  |
  |
  |   facelets.DEVELOPMENT
  |   true
  |
  | 
  |
  | 
  |
  |   javax.faces.STATE_SAVING_METHOD
  |   client
  |
  | 
  |
  |   javax.faces.DEFAULT_SUFFIX
  |   .xhtml
  |
  | 
  |
  |   Faces Servlet
  |   javax.faces.webapp.FacesServlet
  |   1
  |
  | 
  |
  |   Faces Servlet
  |   *.seam
  |
  |   
  | 
  |Restrict raw XHTML Documents
  |
  |XHTML
  |*.xhtml
  |
  |
  |NONE
  |
  |
  |
  | 

that is automatically generated by seam-gen, and:

ajax4jsf-1.1.1-SNAPSHOT.jar
richfaces-3.0.1-SNAPSHOT.jar
myfaces-1.1.4

I don't have any idea about the problem, if you can send me your simple example 
also by email I appreciate very much.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033024#4033024

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033024
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem

2007-03-29 Thread stu2
I'm also using DnD from Richfaces, and just like you started with a simple 
example to explore it.  It's working fine for me (also latest Seam from CVS) so 
I'll post what I have in case it helps you out.

Here's the xhtml:


  | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | http://www.w3.org/1999/xhtml";
  | xmlns:s="http://jboss.com/products/seam/taglib";
  | xmlns:ui="http://java.sun.com/jsf/facelets";
  | xmlns:f="http://java.sun.com/jsf/core";
  | xmlns:h="http://java.sun.com/jsf/html";
  | xmlns:a="https://ajax4jsf.dev.java.net/ajax";
  | xmlns:rich="http://richfaces.ajax4jsf.org/rich";
  | template="/themes/#{globalPrefs.themeName}/template.xhtml">
  | 
  | 
  | Drag and Drop exploration
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | #{fm}
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | #{fm}
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

Here's the SLSB:


  | package com.fb.core.action;
  | 
  | import java.util.ArrayList;
  | import java.util.EnumSet;
  | import java.util.List;
  | 
  | import javax.ejb.Stateless;
  | 
  | import org.ajax4jsf.dnd.Dropzone;
  | import org.ajax4jsf.dnd.event.DropEvent;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.datamodel.DataModel;
  | import org.jboss.seam.framework.EntityController;
  | 
  | import com.fb.core.model.cdm.CdmField;
  | import com.fb.core.model.cdm.Gender;
  | 
  | @Stateless
  | @Name("dand")
  | public class DandDAction extends EntityController implements DanD {
  | 
  | private static final long serialVersionUID = -5492165330283497323L;
  | 
  | @DataModel
  | private final List fields;
  | @DataModel
  | private final List genders;
  | 
  | public DandDAction() {
  | fields = new ArrayList();
  | fields.addAll(EnumSet.allOf(CdmField.class));
  | genders = new ArrayList();
  | genders.addAll(EnumSet.allOf(Gender.class));
  | }
  | 
  | public void dragged(DropEvent dropEvent) {
  | Dropzone dropzone = (Dropzone) dropEvent.getComponent();
  | addFacesMessage("Dragged #0 with dragType #1 onto dropValue 
#2", 
  | dropEvent.getDragValue(), 
dropEvent.getDragType(), dropzone.getDropValue());
  | }
  | 
  | public List getFields() {
  | return fields;
  | }
  | 
  | public List getGenders() {
  | return genders;
  | }
  | 
  | }
  | 

There wasn't really much else to it.  The two lists in the SLSB just contain 
enums.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032931#4032931

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032931
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user