Messages posted by tomlux
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: tomlux  XML
Profile for tomlux -> Messages posted by tomlux [19] Go to Page: 1, 2 Next 
Author Message
Hy,
what is your basic framework for the rendering? (GeoTools, GeoServer, WMS,??)

I would be interested to integrate an open-source mapping framework into my existing components.

If somebody is interested, you could contact me.

Tom
Hy,
I have build up a fully ICEfaces based ESRI-WebADF library for the ArcGIS Server.
Yes, the ArcGIS Server is a commercial product.

You may check itat: http://icewebadf.sourceforge.net

The hole components (map,toc,tool,command,task,...) are fully compatible with Esri WebADF 9.2 and 9.3 framework.

For any questions, you could contact me.

Tom
Please find attached a complete example of
Tree with menu-popup on treenode


Tom
Hy,
I would also be interested in representing an image using an byte[].

It would be a nice feature.

Thanks,
Tom
Hy,
have you got found a solution.

I have a similar problem.

Check my demo version at http://www2.pch.etat.lu/pchViewer

Thanks,
Tom

tomlux wrote:
Hy,
does it exits something like auto-size for the height and width settings.

It should fit the window size to the hole extend of his rendered children.

Thanks,
Tom
 


Have found the solution / bug:

style="height: auto; width: auto;"

Due to a bug, it doesn't yet work correctly:
http://jira.icefaces.org/browse/ICE-2785

Tom
Hy,
does it exits something like auto-size for the height and width settings.

It should fit the window size to the hole extend of his rendered children.

Thanks,
Tom
Hy,
I have found the solution.

I need to set an ID to the "panelPopup".
Then it works.

I have placed a button in it. But the "addActionListener" - code isn't called on a mouse-click.

HtmlCommandButton hideHeaderCommandButton = new HtmlCommandButton();
hideHeaderCommandButton.addActionListener(new ActionListener(){
public void processAction(ActionEvent event) throws AbortProcessingException {
System.out.println("event = " + event);
}
});
hideHeaderCommandButton.setValue("hide");


Any ideas,
Tom
Hy,

I'm building a custom JSF tags which should reuse existing Icefaces componnets.
For simple components like outputText or inputText everything is working,
Now I want to reuse the panelPopup?

But I can't get it working.
Here is my code of my custom JSFrenderer:

PanelPopup panelPopup;
public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {
validateParameters(facesContext, uiComponent, AGSContext.class);
if (isStatic(uiComponent)) {
return;
}
DOMContext domContext = DOMContext.attachDOMContext(facesContext, uiComponent);
if (!domContext.isInitialized()) {
Element container = domContext.createRootElement(HTML.DIV_ELEM);
if (panelPopup == null) {
panelPopup = new PanelPopup();
panelPopup.setParent(uiComponent);
panelPopup.setDraggable("true");
panelPopup.setAutoCentre(true);
panelPopup.setRendered(true);
panelPopup.setResizable(true);
panelPopup.setStyle("z-index: 1000;top:269px;left:482px;position: absolute; width: 300px; height: 150px;");
panelPopup.setTitle("title");
panelPopup.setVisible(true);
}
HtmlOutputText titleComp = new HtmlOutputText();
titleComp.setStyle("z-index:2000;");
titleComp.setStyleClass("popupTitle");
titleComp.setValue("The Title");

panelPopup.getFacets().put("header", titleComp);

HtmlPanelGrid bodyPanelGrid = new HtmlPanelGrid();
bodyPanelGrid.setColumns(1);
bodyPanelGrid.setStyle("z-index:2002;");
bodyPanelGrid.setWidth("100%");
bodyPanelGrid.setStyleClass("popupModalBody");

HtmlOutputText bodyComp = new HtmlOutputText();
bodyComp.setStyle("z-index:2001;");
bodyComp.setValue("The Body");
bodyPanelGrid.getChildren().add(bodyComp);
panelPopup.getFacets().put("body", bodyPanelGrid);

Node lastCursorParent = domContext.getCursorParent();
domContext.setCursorParent(container);
try {
panelPopup.encodeBegin(facesContext);
panelPopup.encodeChildren(facesContext);
panelPopup.encodeEnd(facesContext);
} catch (IOException e) {
e.printStackTrace();
}
domContext.setCursorParent(lastCursorParent);
}
domContext.stepOver();
}

Has anybody a solution on it? It should be a resizable draggable non-modal popup,

Thanks,
Schuller.Tom
Hy,
I also needed to do the same thing in Icefaces 1.7beta1:

public String getId() {
return "_" + String.valueOf(getRowIndex()) + getRowId();
}
Hy,
how can I generate dynamically a new "panelCollapsible".

I want to generate dynamically panelCollapsible's based on user login in the Java code. The content of the panel is generated based on a panel-config coming from a db.

I don't want to pre-generate the panel and work with "rendered" because I want to build the panel based on dynamic database records.

Thanks,
Tom
Hy,
I'm trying to develop my own menuitem-component.

I tried to extend the MenuItem(-Renderer) with no success.

My idea was to build:
<ice:menuBar>
<ice:menuItem/>
<my:customMenuItem/>
<ice:menuItem/>
</ice:menuBar>

How does I have to build my "customMenuItem"?
In the sources, there is a "MenuItemCheckbox.java" which seems to be disabled in the "faces-config.xml".

Can anybody help me?

Thanks,
Tom
Hy,
I'm also getting the same error with Icefaces 1.7DR3
Hy,
have you found a solution?

Thanks,
Tom
Hi,
I have an ActionEvent-method which makes serveral queries in a database.
As one querie can take up to 5 seconds, I solved the problem by implementing an "OnDemandRenderer". My solution works, but creating always a new thread is not very good.

In the "IdentifyLayerRunnable" the "onDemandRenderer" will be executed. As the number of querys is flexible and it doesn't make sense for each query to create a "managed-bean", I implemented it in a runnable.

How can I access or define a new ThreadPool for managing my Threads?
Has Icefaces a "runnable-ThreadPool"?

The application should run under Tomcat5.5 and Jboss4.

Thanks,
Tom


Code:
                    for (WebLayerInfo webLayerInfo : webQueryLayersList) {
                         try {
                             Thread thread = new Thread(new IdentifyLayerRunnable(getCurrentInstance(), webQuery, ic, webLayerInfo), "identify_" + webLayerInfo.getName());
                             thread.start();
                             System.out.println("thread = " + thread);
                         } catch (Exception ex) {
                             ex.printStackTrace();
                         }
                     }
 
 
Profile for tomlux -> Messages posted by tomlux [19] Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team