Help coderanch get a
new server
by contributing to the fundraiser

ya ji

Ranch Hand
+ Follow
since Jul 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ya ji

rule ViewBookAction
no-loop
when
perm: PermissionCheck(target == 'book', action == 'view', granted == false)

How to write below rule?
[(A and (A1 or A2 or A3)) or (B and (B1 or B2 or B3)) or C or D]



then
perm.grant();
end
13 years ago
Thanks a lot Deepak, it worked last Friday, but today, when I start weblogic, the system property is not set, I don't know why.

I set it in startWebLogic.cmd, like below(green):

call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*

set O_PROP=-Dportal.url="https://aaa.bbb.com/csp?tab=CTab&url="
set USER_MEM_ARGS=%O_PROP%


set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%

Do you have any idea?
13 years ago
setting in my setDomainEnv.cmd is:

set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi

set BEA_JAVA_HOME=

set USER_MEM_ARGS=-Xmx1024m -XX:PermSize=256m -Dlogback.configurationFile=C:\Oracle\Middleware\user_projects\domains\o_domain\user_conf\logback.xml -Dportal.url="https://aaa.bbb.com/csp?tab\=CTab&url\=";

set SUN_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07


I called command and got message as below:
C:\Documents and Settings\Me>C:\Oracle\Middleware\user_projects\domains\o_domain\startWebLogic.cmd
=CTab was unexpected at this time.
13 years ago
Hi Deepak,

I followed your way, but I can't start weblogic now, got error: "=CTab was unexpected at this time."

Do you know how to resolve it?

Deepak Pant wrote:Just wrap your -D property with double quotes. It should work under WebLogic.

-Dportal.url="https://abc.com/cp?tab=CTab&url="

13 years ago
I set following system property in weblogic setDomainEnv.cmd, the part after '&' is missed, do you know how to modify it to set '&' character in value?

-Dportal.url=https://abc.com/cp?tab=CTab&url=
or
-Dportal.url=https://abc.com/cp?tab=CTab&url=



I got below result by System.getProperty("portal.url"):

https://abc.com/cp?tab=CTab

expected result is : https://abc.com/cp?tab=CTab&url=
13 years ago
I wanna a datatable has two footer rows, I tried the way as following, but it doesn't work.

<rich:dataTable......
><rich:columns>
<f:facet name="footer">
<h:outputText value="#{a.A}" />
</f:facet>

<h:outputText value="#{a.B}" />
</rich:columns>

<rich:column>
<f:facet name="footer">
<h:outputText value="#{a.X}" />
</f:facet>
<f:facet name="footer">
<h:outputText value="#{a.Y}" />
</f:facet>
</rich:column>
</rich:dataTable>

Do you have any thoughts? thanks in advance.
14 years ago
JSF
I'm using JSF.

Using #{messages[item.Label]} works fine, but what I need is the key is combined with constant+variable.

Any solution?
15 years ago
JSF
Fixed!
Inclose toolTip to h:graphicImage and give h:graphicImage an id, but don't give toolTip id.
15 years ago
JSF
In the page, there is a rich:datalist, loop this datalist, each row has a h:graphicImage component, when user move mouse over this image, show a rich:toolTip.

Following code works fine:
<h:graphicImage id ="Test" value="a.gif" width="12" height="12">
<rich:toolTip for="Test">
<span>error message</span>
</rich:toolTip>
</h:graphicImage>

As you know, h:graphicImage can't have a dynamic id, so in datalist, I can't give each h:graphicImage a unique id which can be use by "for" attribute in rich:toolTip

If h:graphicImage without id, rich:toolTip doesn't work.

I want to make toolTip for each image in datalist work, who has solution for this issue?

thanks in advance!
15 years ago
JSF
When loading a page, pass some params to backing bean.
After loading, in the page, I have some a4j command links to call ajax request, but each ajax call will change the RequestParameter values to null.

I don't want to pass those params in each command link, and keep the RequestParameter's original value(when page loading).

Any solutions? thanks very much!
15 years ago
JSF
When loading a page, pass some params to backing bean.
After loading, in the page, I have some a4j command links to call ajax request, but each ajax call will change the RequestParameter values to null.

I don't want to pass those params in each command link, and keep the RequestParameter's original value(when page loading).

Any solutions? thanks very much!
15 years ago
JSF
As the requirement, I need to let user fill in multiple ip addresses, current thought is: put 4 text boxes separated by dot(.) in one line, but need more work in backing bean to convert four parts to ipaddress and vice versa.

Who knows better solution? or component?

Thanks for sharing in advance.
15 years ago
JSF
Still has this problem, who knows how to fix?
15 years ago
JSF
Need to initialize rich:pickList selected items, before page loading, so after page loaded, there are some items selected, how to do it?

thanks in advance.
15 years ago
JSF
the error message is:
Conversion Error setting value '2' for '#{RoleBean.permissionType}'.
15 years ago
JSF