[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: unger  XML
Profile for unger -> Messages posted by unger [261] Go to Page: Previous  1, 2, 3 ... 14, 15 , 16, 17, 18 Next 
Author Message
Ah! I slap myself.

I was a little bit to fast.

Joachim
I did it ...
private static final String HTMLStart = "<HTML>";
private static final String HTMLEnd = "</HTML>";

but forgot a few items.

Through Your advice I checked my code.

Thank You!

BTW: is ... ln1.setRendered("#{d.CombSpreadsheetMBean.weightShowing}'"); .. allowed?




Code:
private void buildGrid4CompQtyN() {
 		FIXGRIDNode fgn = new FIXGRIDNode();
 		fgn.setObjectbinding("#{d.CombSpreadsheetMBean.combSpreadsheet4ComponentQty}");
 		fgn.setWidth("100%");
 		fgn.setHeight("100%");
 		fgn.setSbvisibleamount("100");
 
 		int size = columnTitleList4ComponentQty.size();
 		if (size > 0) {
 			for (int i = 0; i < size; i++) {
 				String column = columnTitleList4ComponentQty.get(i);
 				String display = columnTitleDisplayList4ComponentQty.get(i);
 				String key = DataHolderExt.keyEncode(column);
 
 				GRIDCOLNode gcn = new GRIDCOLNode();
 				gcn.setText(HTMLStart + display + HTMLEnd);
 				gcn.setWidth("" + widthCompQty);
 
 				PANENode pn = new PANENode();
 				pn.setWidth("100%");
 
 				ROWNode rn1 = new ROWNode();
 				rn1.setRendered("#{d.CombSpreadsheetMBean.weightShowing}'");
 
 				LABELNode ln1 = new LABELNode();
 				ln1.setText(".{quantityMap." + key + "[0]}");
 				ln1.setRendered("#{d.CombSpreadsheetMBean.weightShowing}'");
 
 				rn1.addSubNode(ln1);
 
 				ROWNode rn2 = new ROWNode();
 				rn2.setRendered("#{d.CombSpreadsheetMBean.molShowing}'");
 
 				LABELNode ln2 = new LABELNode();
 				ln2.setText(".{quantityMap." + key + "[1]}");
 				ln2.setRendered("#{d.CombSpreadsheetMBean.molShowing}'");
 
 				rn2.addSubNode(ln2);
 
 				pn.addSubNode(rn1);
 				pn.addSubNode(rn2);
 
 				gcn.addSubNode(pn);
 
 				fgn.addSubNode(gcn);
 			}
 		}
 
 		gridXML4CompQty.setContentNode(fgn);
 	}
Hello again,

Tick, tick, tick and: It works, when using <TAG>Node - model instead of Strings!

But why?


Code:
 public void prepare() {
   FIXGRIDNode fgn = new FIXGRIDNode();
   fgn.setObjectbinding("#{d.Test.grid}");
   fgn.setWidth("100%");
   fgn.setHeight("100%");
   fgn.setSbvisibleamount("100");
   
   GRIDCOLNode gcn = new GRIDCOLNode();
   gcn.setText("<html><b>CO</b>LUMN</html>");
   gcn.setWidth("75");
 
   PANENode pn = new PANENode();
   pn.setWidth("100%");
 
   ROWNode rn = new ROWNode();
 
   LABELNode ln = new LABELNode();
   ln.setText("TEXT");
 
   fgn.addSubNode(gcn);
   gcn.addSubNode(pn);
   pn.addSubNode(rn);
   rn.addSubNode(ln);
 
   gridXML.setContentNode(fgn);
 
 // ===BAD ===
 // String xml = "<t:fixgrid objectbinding='#{d.Test.grid}' " //
 //  + " width='100%' height='100%' sbvisibleamount='100'>" // 
 //  + "<t:gridcol text='COLUMN' width='75'>" //
 //  + "<t:pane width='100%'>" //
 //  + "<t:row>" // 
 //  + "<t:label text='<html><b>T</b>EST</HTML>'/>" //
 //				+ "</t:row>" //
 //				+ "</t:pane>" //
 //				+ "</t:gridcol>" //
 //				+ "</t:fixgrid>";
 //  gridXML.setContentXML(xml);
   
 }
Hi,

here is a test case. Would You check this?

When I use plain text. It worked.
Changing to HTML variant: EC does not show any grid, any log info.

Regards,

Joachim
Hi Björn,

it's a nice feature of Swing, I used years ago.

May be we have a problem using it in rowdynamiccontent.

Must a special encode be used?

Regards,

Joachim

Example:
<t:fixgrid objectbinding='#{d.CombSpreadsheetMBean.combSpreadsheet4ComponentQty}' width='100%' height='100%' sbvisibleamount='100'>
<t:gridcol text='<html>Si2O3</html>' width='75'>
<t:pane width='100%'>
<t:row rendered='#{d.CombSpreadsheetMBean.weightShowing}'>
<t:label text='.{quantityMap.Si2O3[0]}'/>
</t:row>
<t:row rendered='#{d.CombSpreadsheetMBean.molShowing}'>
<t:label text='.{quantityMap.Si2O3[1]}'/>
</t:row>
</t:pane>
</t:gridcol>
<t:gridcol text='<html>SiO_2</html>' width='75'>
<t:pane width='100%'>
<t:row rendered='#{d.CombSpreadsheetMBean.weightShowing}'>
<t:label text='.{quantityMap.SiO_2[0]}'/>
</t:row>
<t:row rendered='#{d.CombSpreadsheetMBean.molShowing}'>
<t:label text='.{quantityMap.SiO_2[1]}'/>
</t:row>
</t:pane>
</t:gridcol>
<t:gridcol text='<html>ZrO2</html>' width='75'>
<t:pane width='100%'>
<t:row rendered='#{d.CombSpreadsheetMBean.weightShowing}'>
<t:label text='.{quantityMap.ZrO2[0]}'/>
</t:row>
<t:row rendered='#{d.CombSpreadsheetMBean.molShowing}'>
<t:label text='.{quantityMap.ZrO2[1]}'/>
</t:row>
</t:pane>
</t:gridcol></t:fixgrid>
Hi Björn,

does it work in ROWDYNAMICCONTENT with <t:gridcol text='<html>whatever</html>'>...?

Regards,

Joachim
Hi,

is it possible to format combobox items' text like smart labels?

Joachim


Joachim
Hi Björn,

example: Had a page mypage.jsp. Deployed it. I decide to turn all pages into upper/lower case. I rename the page in Eclipse to MyPage.jsp. While deploying it nothing is changed on server side (means <EC-Dir>\server\tomat\webapps\<project-Dir>)

I am using Windows XP.

Regards,

Joachim


Joachim
Hi Björn,

what I mean: MyPage.jsp to myPage.jsp

Joachim
Hello,

is it possible to change the upper/lower case of JSP (inside Eclipse) and redeploy it?

EC seams to check case insensitive. The old JSP remains actual.


Joachim
Hello,

I open a popup for editing new values of a member that has to be inserted in a list. After inserting the member and setting the selection/focus on the new item the popup will be closed. At that moment the old selection/focus is refreshed.

Code:
 public void onEditSave(ActionEvent event) {
 ...
   session.saveOrUpdate(editDimUnit);
   session.flush();
   // Modelliste...
   dimUnitModelList.insertOrUpdateObject(editDimUnit);
 
   // UI...
   ListItem listItem = new ListItem(editDimUnit, ... );
   listItem.setListener(this);
   dimUnitGrid.getItems().add(listItem);
   dimUnitGrid.deselectCurrentSelection();
   dimUnitGrid.selectAndFocusItem(listItem);
   if (popup != null) {
     popup.close();
     popup = null;
   }
 


Can I stop this behaviour? The reason for late close is to handle raising exceptions while leaving the popup open. If an exception occurres the user should be able to change some values.

Joachim
Hi Björn,

okay. That's an option. I will ask the customer.
Do You have an out of the box solution?



Joachim
Hi Björn,

usage of paintarea depends on the solution:
At design time it should be possible for a designer to place widgets like buttons, fields, images, ... anywhere on a pane. It's called an analytic report template. At runtime the output is generated by groovy- and database-scripts and user interactions (like selections from a combobox, entering data into a field) by the end user.

Now I checked a use case inside EC-tool. You are right. Inside a paintarea there is no possibility to use % for widths.

Do You have an idea, how I can solve the demand for that?

Joachim
 
Profile for unger -> Messages posted by unger [261] Go to Page: Previous  1, 2, 3 ... 14, 15 , 16, 17, 18 Next 
Go to:   
Powered by JForum 2.1.6 © JForum Team