Author |
Message |
|
Hi,
you can place any additional JavaScript code, view first chatper of:
https://www.captaincasa.com/docu/eclnt_risc_developersguide_addon/
But to be honest: I do not believe that what is described in the article you mention is working for Single Page Application type of pages: as far as I see, the navigation is executed, but on the same page again: this means the current page should be reloaded... Anyway you may give a try: if you are successful, then we immediately copy from what you do! ;-)
KInd regards! Björn
PS: for interested readers: the common way to avoid unwanted back-navigation is to set CONFIRMEXIT to "true": then the default browser window shows up and the user has to confirm he/she wants to leave the application.
and PPS: another way it to start the dialog as progressive web application, then it runs in an own windows without the browser "surroundings"
|
![](/forum/templates/default/images/spacer.gif) |
|
...sorry, the previous message did not respond fully to your question. You are right (just check the code): the ccimagesize request is still fired. - If possible: use the naming convention then I guarantee for not firing any request...
Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
...in the image the HEIGHT and the WIDTH are the space that is occupied by the image. How the image is rendered into this HEIGHT and WIDTH is defined by additional parameters:
KEEPRATIO=true now says, that the ratio of the image is kept during resizing
KEEPRATIOFITMODE=contain/cover defines how the image is "pressed" into the given HEIGHT/WIDTH, "contain" shows full image and shows remaining space as consequence, "cover" fills the region but cuts parts of the image.
Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
Hi,
one way is to explicitly set IMAGEHEIGHT and IMAGEWIDTH in the IMAGE or ICON/BUTTON/...
Another one is to help the client with "proper" naming of images. If they end with "xxx_<width>x<height>.ext" e.g. "cancel_16x16.svg" then the client takes this as width/height and does not recalculate.
Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
Hi,
should be a just normal value change. So if you want to get notified: set FLUSH to true and implement BaseActionEventFlush.
Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
...is available in the download area.
Details about changes: http://www.captaincasa.com/docu/eclnt_changelog
|
![](/forum/templates/default/images/spacer.gif) |
|
...sorry - this is an external framework which we embed. We cannot check for this kind of details ourselves! ;-) - Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
Hi all,
when using the JSF reference implementation there is coming up a stack trace in the log when starting a dialog:
Code:
java.lang.Error: javax.faces.FacesException: Expression Error: Named Object: org.eclnt.jsfserver.elements.impl.UNIFIEDPOLLINGComponent not found.
| at org.eclnt.jsfserver.elements.BaseComponentTag.createBaseComponent(BaseComponentTag.java:471) [eclntjsfserverRISC-20240514.jar:]
| at org.eclnt.jsfserver.elements.impl.ROWINCLUDEComponent$ParsedNode.render(ROWINCLUDEComponent.java:121) [eclntjsfserverRISC-20240514.jar:]
| at org.eclnt.jsfserver.elements.impl.ROWINCLUDEComponent$ParsedNode.render(ROWINCLUDEComponent.java:150) [eclntjsfserverRISC-20240514.jar:]
The application then continues with normal processing.
The error does no show up when using the "mini-JSF-implementation" of CaptainCasa.
We fixed this issue, fix is part of next week's update.
Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
Hi Georgi,
yes, you are right - this is not perfect.
In short: we did an update here - for JEE it is available with interim update 20240516_INT2 (only on Maven, only JEE - complete installation is then coming next Monday).
Some more words: the column header is the one to receive the "click-events" on client side. Up to now only clicks were accepted when they werer originating from the header cell itself or from the label control inside. Now that you set the label size to 0, there was no event anymore.
Why did we exclude other controls (you know that in the browser click-events are bubbled up...)? If you place a FIELD into the header then you do not want to trigger a sorting because the user places the cursor into the field...
With our update we now also mark "stupid click events" (like clicking into a field) as events to not be processed for sorting. So we now can sort out the events in a clear way. Click on label is used, click on field is not used (if enabled...), click on button/... is not used.
Thanks for your message! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
Hi,
the CaptainCasa RADIAL component is similar - but not the same
One easy way to overcome is:
1. Render the pie chart server side as SVG image.
2. Embed the SVG image as IMAGE into the dialog, use e.g. TempFileManager of BufferedContentMgr to make it available as URL.
3. Use OVERLAYAREA component to draw text in front of image.
Code:
ROW
OVERLAYAREA
OVERLAYREABASEITEM
IMAGE image="...reference to the dynamically generated image..."
OVERLAYREAITEM bloundsanchor=centermidde x=50% y=50% z=10
PANE
ROW
LABEL
ROW
LABEL
For creating the server side SVG I cannot name a library, but there must be one somewhere. Or you directly write the SVG on your own... ;-)
Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
Please check 20240515_INT1 (Maven only).
New annotation parameters are "popupHeight" and "popupWidth". You can set one or both.
Thx + regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
Hi Ulli,
@1. yes, is added
@2. new parameter "columnWidths" was added to annotation "dovalidvaluesbydatagridviewdofw", same usage as "columnFormts". Parameter is a String[] (not int[]) because columns have percentage sizes...
Just uploaded 20240514_INT1 to the Maven repository.
Kind regards! Björn
|
![](/forum/templates/default/images/spacer.gif) |
|
...is available in the download area.
Details about changes: http://www.captaincasa.com/docu/eclnt_changelog
|
![](/forum/templates/default/images/spacer.gif) |
|
...is available in the download area.
Details about changes: http://www.captaincasa.com/docu/eclnt_changelog
|
![](/forum/templates/default/images/spacer.gif) |
|
...is available in the download area.
Details about changes: http://www.captaincasa.com/docu/eclnt_changelog
IMPORTANT: please check change log - external client libraries were outsourced into own .jar libraries/artifacts with previous update 20240206
|
![](/forum/templates/default/images/spacer.gif) |
|