[jboss-user] [JBoss Seam] - Re: seam-gen with rf 3.1.3 simpleTogglePanel float clearing

2008-01-08 Thread leeovan
im using seam 2.0.0GA and RF 3.1.3 

i think im getting this issue.  i added the suggestion theme.css but no joy 

i tried in firefox and it looked the same in IE it was almost correct but the 
bottom part of the panel was not showing.

have i missed somethig all i have added is the 

.rich-stglpanel-body {
overflow: auto;
}   

lines to the bottom of my css file


cheers

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

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


[jboss-user] [JBoss Seam] - Re: drag and drop problems with parameters

2007-07-13 Thread leeovan
yes this works now.. i find it quite strange that this is not on by default or 
are there better strategies for getting my user data from the screen.

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

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


[jboss-user] [JBoss Seam] - Re: drag and drop problems with parameters

2007-07-12 Thread leeovan
ok ill give this a try.. is there some documentation explaining this because i 
never read anything about needing to set it.  anyway ill report back if all 
goes well 

thank you

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

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


[jboss-user] [JBoss Seam] - Re: drag and drop problems with parameters

2007-07-12 Thread leeovan
any suggestions or simply point me to some info would be appreciated.  I could 
do with a simple example of accessing backing bean methods with parameters.

thank you 

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

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



[jboss-user] [JBoss Seam] - drag and drop problems with parameters

2007-07-11 Thread leeovan
hello ive been trying to get the drag and drop working for a while now and have 
run into a few problems. 

I have created a bean based on the one i found in the rich faces source


  | 
  | import java.util.ArrayList;
  | import java.util.List;
  | 
  | import org.jboss.seam.annotations.Name;
  | 
  | @Name("dndBean")
  | public class DragAndDropBean {
  | 
  | 
  | private List types = new ArrayList();
  | 
  | private Object dragValue;
  | 
  | private Object testParam;
  | 
  | private List container = new ArrayList();
  | 
  | private List sourceList = new ArrayList();
  | 
  | 
  | 
  | public DragAndDropBean() {
  | super();
  | 
  | types.add("PHP");
  | types.add("JAVA");
  | 
  | 
  | sourceList.add("item1");
  | sourceList.add("item2");
  | }
  | 
  | public void processDrop(org.ajax4jsf.dnd.event.DropEvent event) {
  | System.out.println("Bean.processDrop()");
  | this.dragValue = event.getDragValue();
  | }
  | 
  | public void processDrag(org.ajax4jsf.dnd.event.DragEvent dragEvent) {
  | System.out.println("Bean.processDrag()");
  | }
  | 
  | public List getTypes() {
  | return types;
  | }
  | 
  | public String dragAction() {
  | System.out.println("Bean.dragAction()");
  | return null;
  | }
  | 
  | public String dropAction() {
  | System.out.println("Bean.dropAction()");
  | return null;
  | }
  | 
  | public Object getDragValue() {
  | return dragValue;
  | }
  | 
  | public Object getTestParam() {
  | return testParam;
  | }
  | 
  | public void setTestParam(Object testParam) {
  | this.testParam = testParam;
  | System.out.println("Bean.setTestParam()" + testParam);
  | }
  | 
  | public List getContainer() {
  | return container;
  | }
  | 
  | public void setContainer(List container) {
  | this.container = container;
  | System.out.println("Bean.setContainer()" + container);
  | }
  | 
  | public List getSourceList() {
  | return sourceList;
  | }
  | 
  | public void setSourceList(List sourceList) {
  | this.sourceList = sourceList;
  | System.out.println("Bean.setSourceList()" + sourceList);
  | }
  | 
  | public void reset(){
  | System.out.println("RESET");
  | }
  | }
  | 
  | 

and this is the front 


  | 
  | 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";
  | id="testComponent" 
  | styleClass="edit">
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  |
  |  
  | 
  | 
  | 

now here comes the problem.  i cant seem to find the method i call on the  
dropListener="#{dndBean.processDrop} section..  if i change this to 
dropListener="#{dndBean.dropAction} i get the correct output.. here is the 
actual stack trace.  looks like its a problem with passing parameters.. 


  | 
  | 21:36:45,421 ERROR [ExceptionFilter] uncaught exception
  | javax.servlet.ServletException: /DragAndDropComponent.xhtml @62,20 
dropListener="#{dndBean.processDrop}": Method not f

[jboss-user] [JBoss Seam] - Re: converter and dropdowns

2007-07-10 Thread leeovan
well i got rid of the tag and it still didnt work after much fiddling about i 
have found a solution.. 

for some reason when i used an s:button i could not get the name value but 
iafter changing this to h:comandButton it worked 

can anyone explain whats going on here and also i cant seem to see any s: type 
tags in exadel has this support been added to the jboss tools stuff? or perhaps 
there is a way to add them manually


anyway thanks for the help.

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

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


[jboss-user] [JBoss Seam] - Re: converter and dropdowns

2007-07-08 Thread leeovan
no when i debug it goes into the get method as the page renders but when i 
change the value it does not call the set.. cant see any messages.


  | 
  | 
  |
  |
  |  
  |
  |  
  |
  |  
  |  
  |  
  | 
  | 
  | 
  | 

my screen now looks like this was trying out different things..

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

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


[jboss-user] [JBoss Seam] - Re: converter and dropdowns

2007-07-08 Thread leeovan

  | 
  | @Name("jobManagerHome")
  | public class JobManagerHome extends EntityHome {
  | 
  | 
  | private int MODE = 0;
  | 
  | public static final int jobDetailMode = 1;
  | public static final int tankeringMode = 2;
  | public static final int jettingMode   = 3;
  | public static final int cctvMode  = 4;
  | 
  | 
  | 
  | JobType selectedJobType;
  | 
  | @In(create = true)
  | JobHome jobHome;
  | 
  | public JobManagerHome() {
  | 
  | }
  | 
  | public void setJobDetailId(Integer id) {
  | setId(id);
  | }
  | 
  | public Integer getJobDetailId() {
  | return (Integer) getId();
  | }
  | 
  | @Override
  | protected JobDetail createInstance() {
  | JobDetail jobDetail = new JobDetail();
  | return jobDetail;
  | }
  | 
  | public void wire() {
  | Job job = jobHome.getDefinedInstance();
  | if (job != null) {
  | getInstance().setJob(job);
  | }
  | }
  | 
  | public boolean isWired() {
  | if (getInstance().getJob() == null)
  | return false;
  | return true;
  | }
  | 
  | public JobDetail getDefinedInstance() {
  | return isIdDefined() ? getInstance() : null;
  | }
  | 
  | public void addToJob(){
  | System.out.println("attempt add to job");
  | getInstance().setJob(jobHome.getInstance());
  | jobHome.getInstance().addJobDateail(getInstance());
  | persist();
  | System.out.println("finished add to job");
  | }
  | 
  | 
  | 
  | public void changed(ValueChangeEvent event){
  | System.out.println("changed");
  | if(getInstance() != null){
  | System.out.println(getInstance().getJob_type());
  | }
  | 
  | }
  | public void test(){
  | System.out.println("test");
  | }
  | 
  | public void isTest(){
  | System.out.println("is test");
  | }
  | 
  | public void setJobDetailMode(int mode) {
  | MODE = mode;
  | }
  | 
  | // provides the drop down info 
  | public Vector getJobDetailTypesRefData() {
  | return JobDetailTypesRefData.getJobDetailTypes();
  | 
  | }
  | 
  | 
  | public JobType getSelectedJobType() {
  | return selectedJobType;
  | }
  | 
  | public void setSelectedJobType(JobType selectedJobType) {
  | this.selectedJobType = selectedJobType;
  | }
  | 
  | public boolean isJobDetailMode(){
  | return true;
  | /*if(selectedJobType != null && selectedJobType.getId()==2){
  | return true;
  | }return false;*/
  | }
  | 
  | 
  | 
  | 
  | 
  | }
  | 
  | 

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

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


[jboss-user] [JBoss Seam] - Re: converter and dropdowns

2007-07-08 Thread leeovan
can no one tell me how to access my selected value in a dropdown from my home 
class i must be missing a very basic concept here :(

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

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


[jboss-user] [JBoss Seam] - Re: converter and dropdowns

2007-07-08 Thread leeovan
hmm im still stuck.. do i need to use injection to get my values back? 



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

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


[jboss-user] [JBoss Seam] - Re: converter and dropdowns

2007-07-07 Thread leeovan
yes this works now, however i am finding it difficult to achieve my objective.  
When the user selects an item i want to be able to find out the value that has 
been selected and use this to control what is rendered on the screen..

i assumed that 


would set the value of selectedJobType on my Home class but it does not seem to 
be working.. 

can anyone advise 

thank you.

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

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


[jboss-user] [JBoss Seam] - converter and dropdowns

2007-07-03 Thread leeovan
hello im trying to understand converters and also their place in dropdowns..  I 
have seen many posts about seams new s:convertEntity but i dont want an entity. 
 Im thinking i want something like this.. 

a base class that all objects of the type i want to display will extend.


  | 
  | public class ReferenceData {
  | private String name;
  | private Integer id;
  | 
  | public ReferenceData(Integer id, String name) {
  | this.id = id;
  | this.name = name;
  | }
  | 
  | public Integer getId() {
  | return id;
  | }
  | 
  | public void setId(Integer id) {
  | this.id = id;
  | }
  | 
  | public String getName() {
  | return name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | }
  | 
  |  

then i have a class that extends this. with nothing else in it.

i then use this to make my list of objects to display on the screen



  | public static final Vector getMyJobTypes() {
  | Vector types = newVector();
  | types.add(new JobType(new Integer(1), "hello1"));
  | types.add(new JobType(new Integer(2), "hello2"));
  | types.add(new JobType(new Integer(3), "hello3"));
  | 
  | return types;
  | }
  | 

with this 


  | 
  |   
  | 
  |  
  | 
  | 


this is the converter 


  | 
  | @Name("referenceDataConverter")
  | @Intercept(NEVER)
  | @Converter
  | public class ReferenceDataConverter implements 
javax.faces.convert.Converter {
  | List list;
  | 
  | public String getAsString(FacesContext facesContext, UIComponent 
component, Object obj) {
  | if (obj == null)
  | return null;
  | 
  | ReferenceData referenceData = (ReferenceData) obj;
  | String val = String.valueOf(referenceData.getName());
  | return val;
  | }
  | 
  | public Object getAsObject(FacesContext facesContext, UIComponent 
component, String string) 
  |   throws ConverterException {
  | if (string == null || string.length() == 0) {
  | return null;
  | }
  | 
  | int id = Integer.valueOf(string).intValue();
  | for (ReferenceData referenceData : list) {
  | if (referenceData.getId() == id) {
  | return referenceData;
  | }
  | }
  | 
  | return null;
  | }
  | 
  | }
  | 

however i get this error


  | 
  | java.lang.IllegalArgumentException: Value is no String 
(class=uk.co.anotion.entity.jobs.JobType, [EMAIL PROTECTED]) and component 
jobDetail:_id0with path: {Component-Path : [Class: 
org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: 
/JobDetailEditComponent.xhtml][Class: javax.faces.component.html.HtmlForm,Id: 
jobDetail][Class: org.richfaces.component.html.HtmlPanel,Id: 
jobSelectionPanel][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: 
_id0]} does not have a Converter
  | at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:536)
  | at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:555)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderSelectOptions(HtmlRendererUtils.java:398)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:298)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:252)
  | at 
org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:54)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:189)
  | at 
org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:184)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.encodeChildren(RendererBase.java:121)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
  | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderVie

[jboss-user] [JBoss Seam] - invoking methods from screen

2007-06-28 Thread leeovan
hello.. 
Please can you point me in the right direction.

Im trying to understand the relationship from the screen/xhtml file to my 
backing java code.  I am using a h:selectOneMenu and am trying to figure out 
the best practice when invoking methods on a backing bean.  i am able to access 
a boolean method to evaluate the display of my widgets with the rendered 
property pointing to a backing bean method.. but as yet i am unable to get it 
to access other methods.  

Are there any rules/ best practice regarding this stuff..

cheers  

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

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


[jboss-user] [JBoss Seam] - Menuing stratergy

2007-05-01 Thread leeovan
hello im using seam-gen to make the base project.

My question is to do with the menu. as i have many tables i get many links 
generated and am wondering how best to group them.

ideally i would like a drop down type element that allows me to navigate to 
different pages. ive tried looking in the rich faces library but not having 
much luck.

my attempts at creating simple drop down menus did not seem to do the job very 
well

can anyone suggest a suitable component that i can use thank you for your time


 

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

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